/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo02;

import java.util.ArrayList;
import java.util.List;



/**
 *
 * 2010404101 石立立
 */
public class PersonTest {
        public static void main(String[] args) {
        Person p1 =new Person("张三","0771-5886655","朝阳路156");
        Person p2 =new Person("李四","0771-5886656","朝阳路157");
        Person p3 =new Person("王五","0771-5886657","朝阳路158");
        
        List l= new ArrayList();
        l.add(p1);
        l.add(p2);
        l.add(p3);
        
        System.out.println("ArrayList的元素是:");
        System.out.println(l);
    }

    }
